package com.rongc.client.freight.business.mine.request.api;


import com.android.volley.Response;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;

import org.json.JSONObject;


/*
*  我的钱包
* */
public class MineWalletApi extends AbsRequest<MineWalletApi.MineWalletParams, JSONObject> {

    public MineWalletApi(MineWalletParams feedbackParams, Response.Listener<JSONObject> listener, Response.ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getMyWalletUrl(), feedbackParams, listener, errorListener, JSONObject.class);
    }

    public static class MineWalletParams extends BaseParams {

        public MineWalletParams() {
            put("userId", UniApplication.getInstance().getUserInfo().getUserId());
        }
    }
}
